package com.water.app.mapper;

import com.water.app.Goods;
import com.water.app.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface OrderMapper {
       List<Order> selectAll(int userId);
       @Update("update orders set status=#{status} where goodsId=#{goodsId} and userId=#{userId}")
       void updateStatus(int goodeId, int status,int userId);

       List<Order> getOrderShopGoods(Integer userId);

       List<Goods> getGoodsRelease(Integer userId);

       public List<Order> selectAllOrders(Integer userId);
}
